import Layout from "@/layout";

const usersRouter = {
    path: "/order/list",
    component: Layout,
    redirect: "noRedirect",
    name: "order",
    hidden: false,
    meta: {
        title: "学校管理",
        abbre: "学校",
        icon: "left_menu_order",
        navigation: "/order",
        id: "407"
    },
    children: [
        // 学校列表
        {
            path: "/order/list",
            component: () =>
                import("@/views/order/orderList"),
            name: "order_list",
            hidden: false,
            meta: {
                title: "学校管理",
                noCache: false,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },
        // 学校详情
        {
            path: "/order/list/see/:id",
            component: () =>
                import("@/views/order/orderList_see"),
            hidden: true,
            name: "order_list_see",
            meta: {
                title: "学校详情",
                bread: "学校详情",
                noCache: true,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/list/account",
            component: () => import("@/views/order/account"),
            name: "user_list_account",
            hidden: true,
            meta: {
                title: "超级管理员账号",
                bread: "超级管理员账号",
                noCache: true,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/list/add/:id",
            component: () =>
                import("@/views/order/orderList_add"),
            hidden: true,
            name: "order_list_add",
            meta: {
                title: "创建订单",
                bread: "订单列表,创建订单",
                noCache: true,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },
        // 临时加单
        {
            path: "/order/list/temporaryadd",
            component: () =>
                import("@/views/order/orderList_add_temporary"),
            hidden: true,
            name: "order_list_temporary_add",
            meta: {
                title: "临时加单",
                bread: "订单列表,临时加单",
                noCache: true,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },

        {
            path: "/order/list/check/:id",
            component: () =>
                import("@/views/order/orderList_check"),
            hidden: true,
            name: "order_list_check",
            meta: {
                title: "验收",
                bread: "订单列表,验收",
                noCache: true,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/list/edit/:id",
            component: () =>
                import("@/views/order/orderList_edit"),
            hidden: true,
            name: "order_list_edit",
            meta: {
                title: "编辑订单",
                bread: "订单列表,编辑订单",
                noCache: true,
                navigation: "/order/list",
                icon: "menu_big_data"
            }
        },
        // {
        //     path: "/order/summary",
        //     component: () =>
        //         import("@/views/order/orderSummary"),
        //     hidden: false,
        //     name: "order_summary",
        //     meta: {
        //         title: "竞价排名",
        //         noCache: true,
        //         navigation: "/order/summary",
        //         icon: "menu_big_data"
        //     }
        // },
        {
            path: "/order/batch",
            component: () =>
                import("@/views/order/orderBatch"),
            hidden: false,
            name: "order_batch",
            meta: {
                title: "广告管理",
                noCache: false,
                navigation: "/order/batch",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/finance",
            component: () =>
                import("@/views/order/orderfinance"),
            hidden: false,
            name: "order_finance",
            meta: {
                title: "财务管理",
                noCache: false,
                navigation: "/order/batch",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/batch/record",
            component: () =>
                import("@/views/order/orderBatch_record"),
            hidden: true,
            name: "order_batch_record",
            meta: {
                title: "操作记录",
                bread: "订单列表,操作记录",
                noCache: true,
                navigation: "/order/batch",
                icon: "menu_big_data"
            }
        },
        // {
        //     path: '/order/check',
        //     component: () =>
        //         import ('@/views/order/orderCheck'),
        //     hidden:false,
        //     name: 'order_check',
        //     meta: { title: '订单校对', noCache: true,  navigation:'/order/check', icon: 'menu_big_data'}
        // },
        // {
        //     path: "/order/return",
        //     component: () =>
        //         import ("@/views/order/orderReturn"),
        //     name: "order_return",
        //     hidden: false,
        //     meta: {
        //         title: "订单退货",
        //         noCache: true,
        //         navigation: "/order/return",
        //         icon: "menu_big_data"
        //     }
        // },
        {
            path: "/order/return/add",
            component: () =>
                import("@/views/order/orderReturn_add"),
            name: "order_return_add",
            hidden: true,
            meta: {
                title: "创建退货单",
                bread: "订单退货,创建退货单",
                noCache: true,
                navigation: "/order/return",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/return/see/:id",
            component: () =>
                import("@/views/order/orderReturn_see"),
            name: "order_return_see)",
            hidden: true,
            meta: {
                title: "查看订单",
                bread: "订单退货,查看订单",
                noCache: true,
                navigation: "/order/return",
                icon: "menu_big_data"
            }
        },
        {
            path: "/order/return/check/:id",
            component: () =>
                import("@/views/order/orderReturn_check"),
            name: "order_return_check)",
            hidden: true,
            meta: {
                title: "订单审核",
                bread: "订单退货,订单审核",
                noCache: true,
                navigation: "/order/return",
                icon: "menu_big_data"
            }
        }
        // {
        //   path: "/order/exchange",
        //   component: () => import("@/views/order/orderExchange"),
        //   name: "order_exchange",
        //   hidden: true,
        //   meta: {
        //     title: "订单退货",
        //     noCache: true,
        //     navigation: "/order/exchange",
        //     icon: "menu_big_data"
        //   }
        // }
    ]
};

export default usersRouter;